<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
         <link rel="stylesheet" href="./css/add.css" >
    </head>
    <body>
        <form action="staffsave.php?id=<?php echo $one['id']?>" method="post" class='box'>
            <h2>修改资料</h2>
            <p class="one">
            <span>姓名:</span><input class="name" name="name" type="text" required="required" maxlength="4" value="<?php echo $one['name']?>">
            </p>
            <p class="one">
            <span>所属部门:</span><input class="name" name="department" type="text" required="required" maxlength="3" value="<?php echo $one['department']?>">
            </p>
            <p class="tow">
                    <span class='head'>头像:</span>
                    <input type="radio" name="imgurl" value="images/1.jpg" <?php if($one['imgurl']=='images/1.jpg') echo 'checked=checked' ?>><img src=" images/1.jpg" alt="" />
                    <input type="radio" name="imgurl" value="images/2.jpg" <?php if($one['imgurl']=='images/2.jpg') echo 'checked=checked' ?>><img src=" images/2.jpg" alt="" />
                    <input type="radio" name="imgurl" value="images/3.jpg" <?php if($one['imgurl']=='images/3.jpg') echo 'checked=checked' ?>><img src=" images/3.jpg" alt="" />
                    <input type="radio" name="imgurl" value="images/4.jpg" <?php if($one['imgurl']=='images/4.jpg') echo 'checked=checked' ?>><img src=" images/4.jpg" alt="" />
            </p>
           <p class="one">
            <span>出生日期:</span><input class="name" name="birthday" type="text"  required="required" value="<?php echo $one['birthday']?>">
            </p>
            <p class="one">
            <span>入职日期:</span><input class="name" name="entry" type="text"  required="required" value="<?php echo $one['entry']?>">
            </p>
            <input class="btn" type="submit" value="保存修改">
            <input class="btn" type="reset" value="取消修改" onclick="location.href='index.php'">
        </form> 
    </body>
</html>
